<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FreeRTOS Addons: src/freertos-addon/c++/include/queue.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">FreeRTOS Addons
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_613ab928e2cac05f46a549f1010a006c.html">freertos-addon</a></li><li class="navelem"><a class="el" href="dir_1561b40f2a44bc3fb1e89a4f48d1054f.html">c++</a></li><li class="navelem"><a class="el" href="dir_651d9e330e31228dbb237d3e8c532be3.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">queue.hpp</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/****************************************************************************</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> *</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *  Copyright (c) 2017, Michael Becker (michael.f.becker@gmail.com)</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *  This file is part of the FreeRTOS Add-ons project.</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> *</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> *  Source Code:</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> *  https://github.com/michaelbecker/freertos-addons</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"> *</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment"> *  Project Page:</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"> *  http://michaelbecker.github.io/freertos-addons/</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment"> *</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment"> *  On-line Documentation:</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment"> *  http://michaelbecker.github.io/freertos-addons/docs/html/index.html</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment"> *</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"> *  Permission is hereby granted, free of charge, to any person obtaining a</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment"> *  copy of this software and associated documentation files</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment"> *  (the &quot;Software&quot;), to deal in the Software without restriction, including</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment"> *  without limitation the rights to use, copy, modify, merge, publish,</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="comment"> *  distribute, sublicense, and/or sell copies of the Software, and to</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="comment"> *  permit persons to whom the Software is furnished to do so,subject to the</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="comment"> *  following conditions:</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="comment"> *</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="comment"> *  + The above copyright notice and this permission notice shall be included</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="comment"> *    in all copies or substantial portions of the Software.</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="comment"> *  + Credit is appreciated, but not required, if you find this project</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="comment"> *    useful enough to include in your application, product, device, etc.</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="comment"> *</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="comment"> *  THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="comment"> *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="comment"> *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="comment"> *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="comment"> *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="comment"> *  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="comment"> *  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="comment"> *</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="comment"> ***************************************************************************/</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#include &quot;freertos-config.h&quot;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#ifndef QUEUE_HPP_</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">#define QUEUE_HPP_</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">#ifndef CPP_FREERTOS_NO_EXCEPTIONS</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span><span class="preprocessor">#include &lt;exception&gt;</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span><span class="preprocessor">#include &lt;cstdio&gt;</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="preprocessor">#ifdef CPP_FREERTOS_NO_CPP_STRINGS</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span><span class="preprocessor">#error &quot;FreeRTOS-Addons require C++ Strings if you are using exceptions&quot;</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span><span class="preprocessor">#include &quot;FreeRTOS.h&quot;</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="preprocessor">#include &quot;queue.h&quot;</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacecpp__freertos.html">cpp_freertos</a> {</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="preprocessor">#ifndef CPP_FREERTOS_NO_EXCEPTIONS</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classcpp__freertos_1_1_queue_create_exception.html">   71</a></span><span class="keyword">class </span><a class="code hl_class" href="classcpp__freertos_1_1_queue_create_exception.html">QueueCreateException</a> : <span class="keyword">public</span> std::exception {</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classcpp__freertos_1_1_queue_create_exception.html#a7b8093a60f00c6847106efa181a26930">   77</a></span>        <a class="code hl_function" href="classcpp__freertos_1_1_queue_create_exception.html#a7b8093a60f00c6847106efa181a26930">QueueCreateException</a>()</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>        {</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>            sprintf(errorString, <span class="stringliteral">&quot;Queue Constructor Failed&quot;</span>);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>        }</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classcpp__freertos_1_1_queue_create_exception.html#a226e7f2c0ca938deba9347601a2b19dd">   85</a></span>        <span class="keyword">explicit</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue_create_exception.html#a226e7f2c0ca938deba9347601a2b19dd">QueueCreateException</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *info)</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>        {</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>            snprintf(errorString, <span class="keyword">sizeof</span>(errorString),</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>                        <span class="stringliteral">&quot;Queue Constructor Failed %s&quot;</span>, info);</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>        }</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classcpp__freertos_1_1_queue_create_exception.html#a0ff76893cd4aa6c3538935161ebe7390">   95</a></span>        <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_function" href="classcpp__freertos_1_1_queue_create_exception.html#a0ff76893cd4aa6c3538935161ebe7390">what</a>() <span class="keyword">const</span> throw()</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>        {</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>            <span class="keywordflow">return</span> errorString;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>        }</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>        <span class="keywordtype">char</span> errorString[80];</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>};</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="classcpp__freertos_1_1_queue.html">  117</a></span><span class="keyword">class </span><a class="code hl_class" href="classcpp__freertos_1_1_queue.html">Queue</a> {</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>    <span class="comment">//</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>    <span class="comment">//  Public API</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>    <span class="comment">//</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span><span class="comment"></span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span>        <a class="code hl_class" href="classcpp__freertos_1_1_queue.html">Queue</a>(UBaseType_t maxItems, UBaseType_t itemSize);</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span> </div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#a00d119db8fa3050da37746e82cbcf94f">~Queue</a>();</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#aaced379bf76eddf847560122b3cca012">Enqueue</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *item);</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#aaced379bf76eddf847560122b3cca012">Enqueue</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *item, TickType_t Timeout);</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span> </div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#a4713ec4c9c1410c11acacc4eca72fc18">Dequeue</a>(<span class="keywordtype">void</span> *item, TickType_t Timeout = portMAX_DELAY);</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span> </div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#a2f53a7c5e542275d3e25c59002c04eb3">Peek</a>(<span class="keywordtype">void</span> *item, TickType_t Timeout = portMAX_DELAY);</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#ad514224ecf245093afae09ad05be6fea">EnqueueFromISR</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *item, BaseType_t *pxHigherPriorityTaskWoken);</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#aa696d4b1334d00f72401b18cf45e178c">DequeueFromISR</a>(<span class="keywordtype">void</span> *item, BaseType_t *pxHigherPriorityTaskWoken);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno">  198</span> </div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#a0b8be750c74eba027576bcada410b2f8">PeekFromISR</a>(<span class="keywordtype">void</span> *item);</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno">  207</span> </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#afde637888866b4e1a9d3183c1747b3d3">IsEmpty</a>();</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#a1fc193db648de951c29d2a0efd517b1c">IsFull</a>();</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span> </div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#a28f2419d245690501b0f94984e3e2a17">Flush</a>();</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno">  226</span> </div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>        UBaseType_t <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#ac434616f5ba6d27bae22fc20b78ccd49">NumItems</a>();</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>        UBaseType_t <a class="code hl_function" href="classcpp__freertos_1_1_queue.html#a6f1afbb10175767b684cf3e39bda94ee">NumSpacesLeft</a>();</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno">  238</span> </div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>    <span class="comment">//</span></div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span>    <span class="comment">//  Protected API</span></div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span>    <span class="comment">//  Not intended for use by application code.</span></div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>    <span class="comment">//</span></div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span><span class="comment"></span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="classcpp__freertos_1_1_queue.html#a4b52f88d1cca486036905434f7867a48">  249</a></span>        QueueHandle_t <a class="code hl_variable" href="classcpp__freertos_1_1_queue.html#a4b52f88d1cca486036905434f7867a48">handle</a>;</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno">  250</span>};</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span> </div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span> </div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"><a class="line" href="classcpp__freertos_1_1_deque.html">  262</a></span><span class="keyword">class </span><a class="code hl_class" href="classcpp__freertos_1_1_deque.html">Deque</a> : <span class="keyword">public</span> <a class="code hl_class" href="classcpp__freertos_1_1_queue.html">Queue</a> {</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span> </div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>    <span class="comment">//</span></div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>    <span class="comment">//  Public API</span></div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>    <span class="comment">//</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span><span class="comment"></span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno">  278</span>        <a class="code hl_class" href="classcpp__freertos_1_1_deque.html">Deque</a>(UBaseType_t maxItems, UBaseType_t itemSize);</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno">  279</span> </div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_deque.html#a92aa59429028a76e775087def340e80e">EnqueueToFront</a>(<span class="keywordtype">void</span> *item, TickType_t Timeout = portMAX_DELAY);</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span> </div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_deque.html#a786e2a3c308172f5ca3a47704cc5b594">EnqueueToFrontFromISR</a>(<span class="keywordtype">void</span> *item, BaseType_t *pxHigherPriorityTaskWoken);</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>};</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span> </div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span> </div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"><a class="line" href="classcpp__freertos_1_1_binary_queue.html">  315</a></span><span class="keyword">class </span><a class="code hl_class" href="classcpp__freertos_1_1_binary_queue.html">BinaryQueue</a> : <span class="keyword">public</span> <a class="code hl_class" href="classcpp__freertos_1_1_queue.html">Queue</a> {</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span> </div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>    <span class="comment">//</span></div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span>    <span class="comment">//  Public API</span></div>
<div class="line"><a id="l00320" name="l00320"></a><span class="lineno">  320</span>    <span class="comment">//</span></div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno">  322</span><span class="comment"></span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno">  330</span>        <span class="keyword">explicit</span> <a class="code hl_class" href="classcpp__freertos_1_1_binary_queue.html">BinaryQueue</a>(UBaseType_t itemSize);</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span> </div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_binary_queue.html#a31dd0fdb9cd32779cca8e25c18768256">Enqueue</a>(<span class="keywordtype">void</span> *item);</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span> </div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classcpp__freertos_1_1_binary_queue.html#a4e6009dbf51321dd28fd5e9de521df52">EnqueueFromISR</a>(<span class="keywordtype">void</span> *item, BaseType_t *pxHigherPriorityTaskWoken);</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno">  349</span>};</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno">  350</span> </div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno">  351</span> </div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno">  352</span>}</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno">  353</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclasscpp__freertos_1_1_binary_queue_html"><div class="ttname"><a href="classcpp__freertos_1_1_binary_queue.html">cpp_freertos::BinaryQueue</a></div><div class="ttdef"><b>Definition:</b> queue.hpp:315</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_binary_queue_html_a31dd0fdb9cd32779cca8e25c18768256"><div class="ttname"><a href="classcpp__freertos_1_1_binary_queue.html#a31dd0fdb9cd32779cca8e25c18768256">cpp_freertos::BinaryQueue::Enqueue</a></div><div class="ttdeci">virtual bool Enqueue(void *item)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:202</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_binary_queue_html_a4e6009dbf51321dd28fd5e9de521df52"><div class="ttname"><a href="classcpp__freertos_1_1_binary_queue.html#a4e6009dbf51321dd28fd5e9de521df52">cpp_freertos::BinaryQueue::EnqueueFromISR</a></div><div class="ttdeci">virtual bool EnqueueFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:209</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_deque_html"><div class="ttname"><a href="classcpp__freertos_1_1_deque.html">cpp_freertos::Deque</a></div><div class="ttdef"><b>Definition:</b> queue.hpp:262</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_deque_html_a786e2a3c308172f5ca3a47704cc5b594"><div class="ttname"><a href="classcpp__freertos_1_1_deque.html#a786e2a3c308172f5ca3a47704cc5b594">cpp_freertos::Deque::EnqueueToFrontFromISR</a></div><div class="ttdeci">bool EnqueueToFrontFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:186</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_deque_html_a92aa59429028a76e775087def340e80e"><div class="ttname"><a href="classcpp__freertos_1_1_deque.html#a92aa59429028a76e775087def340e80e">cpp_freertos::Deque::EnqueueToFront</a></div><div class="ttdeci">bool EnqueueToFront(void *item, TickType_t Timeout=portMAX_DELAY)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:176</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_create_exception_html"><div class="ttname"><a href="classcpp__freertos_1_1_queue_create_exception.html">cpp_freertos::QueueCreateException</a></div><div class="ttdef"><b>Definition:</b> queue.hpp:71</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_create_exception_html_a0ff76893cd4aa6c3538935161ebe7390"><div class="ttname"><a href="classcpp__freertos_1_1_queue_create_exception.html#a0ff76893cd4aa6c3538935161ebe7390">cpp_freertos::QueueCreateException::what</a></div><div class="ttdeci">virtual const char * what() const</div><div class="ttdef"><b>Definition:</b> queue.hpp:95</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_create_exception_html_a226e7f2c0ca938deba9347601a2b19dd"><div class="ttname"><a href="classcpp__freertos_1_1_queue_create_exception.html#a226e7f2c0ca938deba9347601a2b19dd">cpp_freertos::QueueCreateException::QueueCreateException</a></div><div class="ttdeci">QueueCreateException(const char *info)</div><div class="ttdef"><b>Definition:</b> queue.hpp:85</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_create_exception_html_a7b8093a60f00c6847106efa181a26930"><div class="ttname"><a href="classcpp__freertos_1_1_queue_create_exception.html#a7b8093a60f00c6847106efa181a26930">cpp_freertos::QueueCreateException::QueueCreateException</a></div><div class="ttdeci">QueueCreateException()</div><div class="ttdef"><b>Definition:</b> queue.hpp:77</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html">cpp_freertos::Queue</a></div><div class="ttdef"><b>Definition:</b> queue.hpp:117</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_a00d119db8fa3050da37746e82cbcf94f"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#a00d119db8fa3050da37746e82cbcf94f">cpp_freertos::Queue::~Queue</a></div><div class="ttdeci">virtual ~Queue()</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:60</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_a0b8be750c74eba027576bcada410b2f8"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#a0b8be750c74eba027576bcada410b2f8">cpp_freertos::Queue::PeekFromISR</a></div><div class="ttdeci">bool PeekFromISR(void *item)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:126</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_a1fc193db648de951c29d2a0efd517b1c"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#a1fc193db648de951c29d2a0efd517b1c">cpp_freertos::Queue::IsFull</a></div><div class="ttdeci">bool IsFull()</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:144</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_a28f2419d245690501b0f94984e3e2a17"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#a28f2419d245690501b0f94984e3e2a17">cpp_freertos::Queue::Flush</a></div><div class="ttdeci">void Flush()</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:152</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_a2f53a7c5e542275d3e25c59002c04eb3"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#a2f53a7c5e542275d3e25c59002c04eb3">cpp_freertos::Queue::Peek</a></div><div class="ttdeci">bool Peek(void *item, TickType_t Timeout=portMAX_DELAY)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:96</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_a4713ec4c9c1410c11acacc4eca72fc18"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#a4713ec4c9c1410c11acacc4eca72fc18">cpp_freertos::Queue::Dequeue</a></div><div class="ttdeci">bool Dequeue(void *item, TickType_t Timeout=portMAX_DELAY)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:86</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_a4b52f88d1cca486036905434f7867a48"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#a4b52f88d1cca486036905434f7867a48">cpp_freertos::Queue::handle</a></div><div class="ttdeci">QueueHandle_t handle</div><div class="ttdef"><b>Definition:</b> queue.hpp:249</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_a6f1afbb10175767b684cf3e39bda94ee"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#a6f1afbb10175767b684cf3e39bda94ee">cpp_freertos::Queue::NumSpacesLeft</a></div><div class="ttdeci">UBaseType_t NumSpacesLeft()</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:164</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_aa696d4b1334d00f72401b18cf45e178c"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#aa696d4b1334d00f72401b18cf45e178c">cpp_freertos::Queue::DequeueFromISR</a></div><div class="ttdeci">bool DequeueFromISR(void *item, BaseType_t *pxHigherPriorityTaskWoken)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:116</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_aaced379bf76eddf847560122b3cca012"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#aaced379bf76eddf847560122b3cca012">cpp_freertos::Queue::Enqueue</a></div><div class="ttdeci">virtual bool Enqueue(const void *item)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:66</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_ac434616f5ba6d27bae22fc20b78ccd49"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#ac434616f5ba6d27bae22fc20b78ccd49">cpp_freertos::Queue::NumItems</a></div><div class="ttdeci">UBaseType_t NumItems()</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:158</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_ad514224ecf245093afae09ad05be6fea"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#ad514224ecf245093afae09ad05be6fea">cpp_freertos::Queue::EnqueueFromISR</a></div><div class="ttdeci">virtual bool EnqueueFromISR(const void *item, BaseType_t *pxHigherPriorityTaskWoken)</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:106</div></div>
<div class="ttc" id="aclasscpp__freertos_1_1_queue_html_afde637888866b4e1a9d3183c1747b3d3"><div class="ttname"><a href="classcpp__freertos_1_1_queue.html#afde637888866b4e1a9d3183c1747b3d3">cpp_freertos::Queue::IsEmpty</a></div><div class="ttdeci">bool IsEmpty()</div><div class="ttdef"><b>Definition:</b> cqueue.cpp:136</div></div>
<div class="ttc" id="anamespacecpp__freertos_html"><div class="ttname"><a href="namespacecpp__freertos.html">cpp_freertos</a></div><div class="ttdef"><b>Definition:</b> condition_variable.hpp:57</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
